/**
 * 
 */
package com.demo2do.fms.admin.service.supplier.impl;

import java.util.List;

import org.springframework.stereotype.Service;

import com.demo2do.core.persistence.annotation.Dao;
import com.demo2do.fms.admin.dao.supplier.EsbBlackWhiteListDao;
import com.demo2do.fms.admin.service.supplier.BlackWhiteListService;
import com.demo2do.fms.entity.driver.EsbBlackWhiteList;

/**
 * @author Guangli Yan
 *
 */
@Service("blackWhiteListService")
public class BlackWhiteListServiceImpl implements BlackWhiteListService {

    @Dao
    private EsbBlackWhiteListDao blackWhiteListDao;
    
    /* (non-Javadoc)
     * @see com.demo2do.fms.admin.service.supplier.BlackWhiteListService#listByCitizenCode(java.lang.String)
     */
    public List<EsbBlackWhiteList> listByCitizenCode(String citizenCode) {
        
        List<EsbBlackWhiteList> blackWhiteLists = blackWhiteListDao.listByCitizenCode(citizenCode);
        
        return blackWhiteLists;
    }

}
